package com.lrkj.payfee.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 付款方式记录对象 tb_advice_payment_mode
 *
 * @author yajun_ren
 * @date 2022-03-26
 */
@Data
public class AdvicePaymentMode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 付款单ID */
    @Excel(name = "付款单ID")
    private String advicePaymentId;

    /** 付款类型 */
    @Excel(name = "付款类型")
    private String paymentType;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private BigDecimal paymentMoney;

    /** 付款人名称 */
    @Excel(name = "付款人名称")
    private String paymentUserName;

    /** 付款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("advicePaymentId", getAdvicePaymentId())
            .append("paymentType", getPaymentType())
            .append("paymentMoney", getPaymentMoney())
            .append("paymentUserName", getPaymentUserName())
            .append("paymentTime", getPaymentTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
